package cn.zktr.Personnel.model.service.tanyali;

import javax.transaction.Transactional;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.alibaba.fastjson.JSONArray;

import cn.zktr.Personnel.model.dao.tanyali.EmaTrtsDao;
import cn.zktr.Personnel.model.mappers.tanyali.EmaFebMapper;
import cn.zktr.Personnel.model.mappers.tanyali.EmaTrtsMapper;
import cn.zktr.Personnel.model.pojos.PerEmaTrts;



@Service
@Transactional(rollbackOn=Exception.class)
public class EmaTrtsService {
	@Autowired
	private EmaTrtsMapper trtsmer;
	
	@Autowired
	private EmaTrtsDao trtsdao;
	
	public Iterable<PerEmaTrts> selectFebAll(){
		return trtsdao.findAll();
	}
	
	/**
	 * @return 招聘结果数据
	 */
	public JSONArray zpjieguoselect() {
		// TODO Auto-generated method stub
		return trtsmer.zpjieguoselect();
	}
	
	/**
	 * @return 培训结果数据
	 */
	public JSONArray pxjieguoselect() {
		// TODO Auto-generated method stub
		return trtsmer.pxjieguoselect();
	}
	
	/**
	 * @return 升职结果数据
	 */
	public JSONArray szjieguoselect() {
		// TODO Auto-generated method stub
		return trtsmer.szjieguoselect();
	}
	
	/**判断试卷是否批改完
	 * @return 
	 */
	public int shijuanpigaiselect(Integer ZKZID) {
		// TODO Auto-generated method stub
		return trtsmer.shijuanpigaiselect(ZKZID).size();
	}
}
